package Demo513;

import java.io.IOException;
import java.util.Scanner;

public class Test {
    public static void main(String[] args) throws IOException {
        TestFile testFile = new TestFile();
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入要创建的文件：");
        String filename = scanner.next();
        System.out.println("请输入文本：");
        String data = scanner.next();
        testFile.SetData(filename, data );

        System.out.println("请输入你想读取的文件：");
        String Filename = scanner.next();
        testFile.GetData(Filename);
    }
}
